const seq = require('../connections/mysql_connect'),
      { STRING, INT, DECIMAL, TEXT } = require('../../config/db_type_config');

const ProblemAnswer = seq.define('problem_answer', {
  pid: {
    content: 'problem id',
    type: INT,
    allowNull: false,
    unique: true
  },
  content: {
    content: 'answer content',
    type: TEXT,
    allowNull: false
  },
  origin: {
    content: 'answer origin',
    type: STRING,
    allowNull: false
  }
})

// status: {
//   comment: 'agency_info_status', //控制是否显示
//   type: INT,
//   defaultValue: 1,
//   allowNull: true //设初始值要同时设置非空
// }

module.exports = ProblemAnswer;